import 'package:flutter/material.dart';
///
class AspectRatioDemo extends StatelessWidget {
  @override
  Widget build(Object context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(title: const Text('AspectRatio Sample')),
        body: Center(
          child: Container(
            alignment: Alignment.center,
            color: Colors.blue,
            height: double.infinity,
            width: double.infinity,
            child: AspectRatio(
              aspectRatio: 16 / 9,
              child: Container(
                color: Colors.green,
              ),
            ),
          ),
        ), 
      ),
    );
  }
}
